<?php

use Phinx\Migration\AbstractMigration;

class AddColumnFastWorkflowInProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table("project")
            ->addColumn('fast_workflow', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否快速生产流程（不可逆）'])
            ->save();
    }

    public function down()
    {
        $this->table("project")
            ->removeColumn("fast_workflow")
            ->save();
    }
}
